
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>在线考试系统 - 登录</title>
</head>
 <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        .container {
            background-color: #ffffff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            text-align: center;
            width: 300px;
        }

        h1 {
            font-size: 24px;
            margin-bottom: 20px;
            color: #333333;
        }

        label {
            display: block;
            margin-bottom: 8px;
            color: #555555;
        }

        select, input[type="text"], input[type="password"], button {
            width: 100%;
            padding: 10px;
            margin-bottom: 15px;
            border: 1px solid #dddddd;
            border-radius: 4px;
            box-sizing: border-box;
        }

        button {
            background-color: #007bff;
            color: white;
            border: none;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        button:hover {
            background-color: #0056b3;
        }

        form {
            margin-bottom: 15px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>在线考试系统</h1>
        <form action="/" method="POST">
            <label for="user_type">选择身份:</label>
            <select name="user_type" id="user_type">
                <option value="teacher">老师</option>
                <option value="student">学生</option>
                <option value="parent">家长</option>
            </select>
            <label for="username">机号:</label>
            <input type="text" id="username" name="username" required>
            <label for="password">密码:</label>
            <input type="password" id="password" name="password" required>
            <button type="submit" name="login">登录</button>
        </form>

        <form action="/" method="POST">
            <button type="submit" name="register">注册</button>
        </form>

        <form action="/" method="POST">
            <button type="submit" name="forgot_password">忘记密码</button>
        </form>
    </div>
</body>
</html>